package com.lyeducation.entities.course;

import com.lyeducation.entities.base.BaseFileEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@Entity
@Table(name = "video")
public class VideoEntity extends BaseFileEntity {
    /**
     * 视频截图访问路径
     */
    private String imgUrl;
    /**
     * 排序
     */
    private int sort;

    //    private VideoAccessRoleEnum videoAccessRole;

    private int videoAccessRole;

    //    @Embedded
    //    private VideoTypeEntity videoTypeEntity;

    private String type;
    // 总评分
    private int totalScore;

    // 总评分人数
    private int totalPeopleScoreSize;
    //    public VideoAccessRoleEnum getVideoAccessRole() {
    //        return videoAccessRole;
    //    }
    //
    //    public void setVideoAccessRole(VideoAccessRoleEnum videoAccessRole) {
    //        this.videoAccessRole = videoAccessRole;
    //    }

    //    public VideoTypeEntity getVideoTypeEntity() {
    //        return videoTypeEntity;
    //    }
    //
    //    public void setVideoTypeEntity(VideoTypeEntity videoTypeEntity) {
    //        this.videoTypeEntity = videoTypeEntity;
    //    }

    @Column(name = "totalScore")
    public int getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(int totalScore) {
        this.totalScore = totalScore;
    }
}
